package day0901;
public class Test2 {
    public static void main(String[] args) {

        StringBuffer  i=new StringBuffer("Java");

        int len=i.length();//4
        System.out.println(len);//4

        StringBuffer len2=i.append("最棒");//"Java最棒"
        System.out.println(len2);

        //s="大数据3班Java 最棒"
        StringBuffer s=i.insert(0,"大数据3班");//插入
        i.insert(9,"学的");
        System.out.println(i);

    }
}
